/**
 * ======================================
 *   楼宇管理
 * author: SKY-D
 * file: building.js
 * date: 2022/6/12 13:08
 * ======================================
 */
import Layout from '@/layout'

const pre = 'building'
const router = {
  path: '/' + pre,
  component: Layout,
  redirect: '/building/list',
  name: pre,
  meta: {
    title: '社会面概况',
    icon: 'el-icon-ly-24gl-building2',
    permissions: ['BD']
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/building/list'), // Parent router-view
      name: pre + 'list',
      meta: {
        title: '商务楼宇',
        permissions: ['BD:BUILDING']
      }
    },
    {
      path: 'shop',
      component: () => import('@/views/empty'), // Parent router-view
      name: pre + 'shopList',
      meta: {
        title: '沿街店铺',
        permissions: ['BD:SHOP']
      }
    },
    {
      path: 'hotel',
      component: () => import('@/views/empty'), // Parent router-view
      name: pre + 'hotelList',
      meta: {
        title: '宾馆酒旅',
        permissions: ['BD:HOTEL']
      }
    },
    {
      path: 'visitor',
      component: () => import('@/views/floating/visitor'), // Parent router-view
      name: pre + 'visitor',
      hidden: true,
      meta: {
        title: '访客管理',
        permissions: ['FLOW_PERSON']
      }
    }
    // {
    //   path: 'inviteIndex',
    //   component: () => import('@/views/company/list/inviteIndex'), // Parent router-view
    //   name: pre + 'inviteIndex',
    //   meta: {
    //     title: '邀请访问',
    //     permissions: ['BD:COMPANY']
    //   }
    // },

  ]
}

export default router
